<?php


namespace App\Models;


use App\Engine\BaseModel;

class GoodsOrder extends BaseModel
{
    protected $table = 'goods_order';

    protected $fillable = [
        'goods_id',
        'uid',
        'price',
        'state',
        'qrcode',
        'hx_time'
    ];

    public $with=["user","goods"];

    public function goods()
    {
        return $this->belongsTo("App\Models\Goods","goods_id","id");
    }

}
